package com.example.demo.pojo.mysqlPojo;

import java.util.Date;
import java.util.Objects;

public class myUser {
    private String id;
    private String username;
    private String password;
    private Date birthday;

    public myUser() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "myUser{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", birthday=" + birthday +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        myUser myUser = (myUser) o;
        return id == myUser.id &&
                Objects.equals(username, myUser.username) &&
                Objects.equals(password, myUser.password) &&
                Objects.equals(birthday, myUser.birthday);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, username, password, birthday);
    }
}
